import FingerprintJS from '@fingerprintjs/fingerprintjs'

async function getFingerprint() {
  const result = await FingerprintJS.load()
  const visitorId = await result.get()
  return visitorId.visitorId
}

export default getFingerprint
